from api.login_api import LoginApi


def get_headers(mobile="13800000002",password="123456"):
    body = {"mobile": mobile, "password": password}
    resp = LoginApi.login(body)
    token = "Bearer " + resp.json().get("data")
    headers = {"Authorization": token}
    return headers

if __name__ == '__main__':
    a= get_headers()
    print(a)